package com.open.capacity.dao;

import com.open.capacity.model.UserModel;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author: y_022
 * @date: 19:46-2021/6/23
 * @description:
 */
public interface UserDao {
    UserModel findUserById(@Param("userModel") UserModel userModel);

    void updatePassword(@Param("userModel") UserModel userModel);

    void updateUser(@Param("userModel") UserModel userModel);


    @Update("  update  user set avatar=#{userModel.avatar} where userid = #{userModel.userid}")
    void updateAvatar(@Param("userModel") UserModel userModel);
}
